/**
 * Copyright &copy; 2012-2016 <a href="https://shop450532966.taobao.com/">NumberOne</a> All rights reserved.
 */
package com.numberone.master.modules.sys.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.numberone.master.common.persistence.Page;
import com.numberone.master.common.service.CrudService;
import com.numberone.master.modules.sys.entity.Notice;
import com.numberone.master.modules.sys.entity.NoticeInfo;
import com.numberone.master.modules.sys.dao.NoticeInfoDao;

/**
 * 公告管理Service
 * @author ck
 * @version 2017-07-06
 */
@Service
@Transactional(readOnly = true)
public class NoticeInfoService extends CrudService<NoticeInfoDao, NoticeInfo> {
	
	@Autowired
	private NoticeInfoDao noticeInfoDao;
	
	public NoticeInfo get(String id) {
		return super.get(id);
	}
	
	public List<NoticeInfo> findList(NoticeInfo noticeInfo) {
		return super.findList(noticeInfo);
	}
	
	public Page<NoticeInfo> findPage(Page<NoticeInfo> page, NoticeInfo noticeInfo) {
		return super.findPage(page, noticeInfo);
	}
	
	@Transactional(readOnly = false)
	public void save(NoticeInfo noticeInfo) {
		super.save(noticeInfo);
	}

	@Transactional(readOnly = false)
	public void update(NoticeInfo noticeInfo) {
		super.update(noticeInfo);
	}
	
	@Transactional(readOnly = false)
	public void delete(NoticeInfo noticeInfo) {
		super.delete(noticeInfo);
	}
	
	
	public List<Notice> noticeList(Notice notice) {
		return noticeInfoDao.noticeList(notice);
	}
}